export {
    User,
};

/**
 * 用户
 */
class User {

    id: number;
    phoneNumber: string;
    userName: string;
    headPictureUrl: string;
    headPictureBase64: string;
    accountType: number;    // 帐号类型
    accountStatus = 0;  // 帐号状态，0：可用，1：不可用, 默认可用
    areaId: number;
    areaName: string;
    address: string;
    createTime: string;

    roleIds: any[] = [];

    setDataValue(data: any) {
        this.id = data.id;
        this.phoneNumber = data.phoneNumber;
        this.userName = data.userName;
        this.headPictureUrl = data.headPictureUrl;
        this.accountType = data.accountType;
        this.accountStatus = data.accountStatus;
        this.areaId = data.areaId;
        this.areaName = data.areaName;
        this.address = data.address;
        this.createTime = data.createTime;
        this.roleIds = data.roleIds;
    }

}
